﻿using Model.DomainModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Utility;
using Utility.Enum;

namespace DomainService.IService
{
    /// <summary>
    /// 流程信息服务接口
    /// </summary>
    public interface IFlowMessageService
    {
        /// <summary>
        /// 检测即将过期或过期流程节点,并写入数据库
        /// </summary>
        ReceiveStatus CheckExpireFlowNode();

        /// <summary>
        /// 获取当前登录人员流程信息
        /// </summary>
        /// <returns></returns>
        ReceiveStatus<List<FlowMessage>> GetFlowMessage();

        /// <summary>
        /// 新增流程消息
        /// </summary>
        /// <param name="flowApplyId">流程申请id</param>
        /// <param name="recipientKeys">接收人员key</param>
        /// <param name="messageType">消息类型</param>
        /// <returns></returns>
        ReceiveStatus Insert(string flowApplyId, string recipientKeys, MessageTypeEnum messageType);
    }
}
